function login() {
    axios.get("/user/land",{
        params:{
            name:$("userName").value,
            password:$("password").value
        }
    }).then(resp=>{
        var info = resp.data;
        if (info=="ok"){
            location.href = "/index.html";
        }else {
            $("loginDiv").innerHTML="登陆失败";
        }
    });
}